classdef RankParentChooser
    %UNTITLED5 Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
    end
    
    methods
        function ps = execute(~, obj)
            if ~obj.sorted
                obj.sort();
            end
            p1 = obj.individuals( rank_proportional_rand_idx(obj.size) );
            p2 = obj.individuals( rank_proportional_rand_idx(obj.size) );
            ps = [p1, p2];
        end
    end
    
end

